#!/bin/bash


$1scripts/buildFirbi.sh $1
android update project -n FIRBI_Tests -p $1tests -t 3
ant debug -f $1tests/build.xml
emulator -avd $2 &
adb wait-for-device $2
sleep 45
adb install -r $1bin/FIRBI-debug.apk
adb install -r $1tests/bin/FIRBI_Tests-debug.apk